package com.example.aopdemo.controller;

/*
 * @author zzr
 * @date: 2025/10/03  13:02
 * @description:
 */

import com.example.aopdemo.config.MyAspect;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/test")
public class TestController {

    @RequestMapping("/t1")
    public String t1() {
        return "t1";
    }

    @MyAspect
    @RequestMapping("/t2")
    public boolean t2() {
        return true;
    }
}
